home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-25 | 27.6 KB | 82 lines | [TEXT/CWIE] |
- unit ICCAPI;
-
- (* •••Start Header••• *)
-
- (* File: ICCAPI.p (intf)
- * Generated by: 1.0d4
- * For: IC 1.2
- * On: Monday, 25 September 1995, 19:28:12
- *
- * This file is part of the Internet Configuration system and
- * is placed in the public domain for the benefit of all.
- *)
-
- (* •••End Header••• *)
-
- interface
-
- uses
- {$ifc undefined THINK_Pascal}
- Types, Files, QuickDraw, AppleTalk, Aliases,
- {$endc}
- Components, ICTypes, ICKeys;
-
- const
- internetConfigurationComponentType = 'PREF'; (* the component type *)
- internetConfigurationComponentSubType = 'ICAp'; (* the component subtype *)
- internetConfigurationComponentInterfaceVersion0 = $00000000;
- internetConfigurationComponentInterfaceVersion1 = $00010000;
- internetConfigurationComponentInterfaceVersion2 = $00020000;
- (* current version number is version 2 *)
- internetConfigurationComponentInterfaceVersion = internetConfigurationComponentInterfaceVersion2;
-
- (* •••Start ICCAPI.p••• *)
-
- (* ***** Starting Up and Shutting Down ***** *)
-
- function ICCStart(var inst : ComponentInstance; creator : OSType) : ICError;
- (* Call this at application initialisation. Set creator to your application
- * creator to allow for future expansion of the IC system. Returns
- * inst as a connection to the IC system.
- *)
-
- function ICCStop(inst : ComponentInstance) : ICError;
- (* It is illegal to call this routine inside a ICBegin/End pair.
- * Call this at application initialisation, after which inst
- * is no longer valid connection to IC.
- *)
-
- (* ***** Specifying a Configuration ***** *)
-
- function ICCFindConfigFile(inst : ComponentInstance; count : integer; folders : ICDirSpecArrayPtr) : ICError;
- {$ifc not GeneratingCFM}
- inline $2F3C, 6, 2, $7000, $A82A;
- {$endc}
- (* It is illegal to call this routine inside a ICBegin/End pair.
- * Call to configure this connection to IC.
- * Set count as the number of valid elements in folders.
- * Set folders to a pointer to the folders to search.
- * Setting count to 0 and folders to nil is OK.
- * Searches the specified folders and then the Preferences folder
- * in a unspecified manner.
- *)
-
- function ICCFindUserConfigFile(inst : ComponentInstance; var where : ICDirSpec) : ICError;
- {$ifc not GeneratingCFM}
- inline $2F3C, 4, 14, $7000, $A82A;
- {$endc}
- (* Requires IC 1.1.
- * It is illegal to call this routine inside a ICBegin/End pair.
- * Similar to ICFindConfigFile except that it only searches the folder
- * specified in where. If the input parameters are valid the routine
- * will always successful configure the instance, creating an
- * empty configuration if necessary
- * For use with double-clickable preference files.
- *)
-
- function ICCGeneralFindConfigFile(inst : ComponentInstance; search_prefs : Boolean; can_create : Boolean; count : integer; folders : ICDirSpecArrayPtr) : ICError;
- {$ifc not GeneratingCFM}
- inline $2F3C, 10, 30, $7000, $A82A;
- {$endc}
- (* Requires IC 1.2.
- * It is ille